* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

body {
    background: linear-gradient(200deg, #e3c5eb, #a9c1ed);
}

.mask {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

.wrapper {
    display: flex;
}

.sidemenu {
    flex-basis: 340px;
    height: 100vh;
    padding: 0 20px;
}

.sidemenu-header {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.sidemenu-header img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.sidemenu-header span {
    font-size: 30px;
    display: inline-block;
    transform: translateY(-10px);
}

.sidemenu-header .avatar {
    border-radius: 50%;
}

.sidemenu nav {
    display: flex;
    flex-direction: column;
    height: 200px;
    overflow-y: scroll;
    border-right: 1px solid gray;
}

.sidemenu nav::-webkit-scrollbar {
    display: none;
}

.link-checked {
    border-right: 1px solid #59a1ff;
    color: #59a1ff !important;
}

.sidemenu nav a {
    margin: 10px 0;
    padding: 5px 0;
    color: gray;
}

.main {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.main textarea {
    width: 400px;
    height: 500px;
    border: 0;
    outline: none;
}

.write {
    width: 100px;
    height: 20px;
    margin: 20px 0;
    margin-left: 20px;
    border: 0;
    border-radius: 5px;
    background-color: #fff;
}

.title {
    margin-top: 20px;
    margin-bottom: 10px;
}

.main-item {
    display: flex;
    flex-direction: column;
    width: 40%;
}

#message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f2f2f2;
    padding: 15px 40px;
    white-space: nowrap;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-align: center;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

#message-box p {
    font-size: 1.2rem;
    margin: 0;
    transition: opacity 0.3s ease-in-out 0.3s;
}

#dismiss-button {
    margin-top: 10px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out 0.3s;
}

#dismiss-button:hover {
    text-decoration: underline;
}

#message-box.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out 0.3s, visibility 0s linear 0s;
}

#message-box.show p {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.3s;
}

#message-box.show #dismiss-button {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.6s;
}

.close-button {
    position: absolute;
    top: -6px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-button::before,
.close-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: black;
}

.close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.inputcontainer {
    margin: 40px 0;
}

input[type="submit"] {
    width: 100px;
}

.hide {
    display: none;
}